package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.jueyzMapper;
import com.information.manage.MaintenanceRecord.pojo.jueyz;
import com.information.manage.MaintenanceRecord.service.jueyzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class jueyzServicelmpl implements jueyzService {
    @Autowired
    private jueyzMapper jueyzMapper;

    @Override
    public List<jueyz> selectAll() {
        return jueyzMapper.selectAll();
    }

    @Override
    public void addMaintJueyz(jueyz jueyz) {
        jueyzMapper.insert(jueyz);
    }

    @Override
    public void updateMaintJueyz(jueyz jueyz) {
        jueyzMapper.update(jueyz);
    }

    @Override
    public void deleteMaintJueyz(Integer jyzid) {
        jueyzMapper.delete(jyzid);
    }

    @Override
    public void logicDeleteMaintJueyz(Integer jyzid) {
        jueyzMapper.logicDelete(jyzid);
    }
}